<template>
    <view class="search-container">
      <view class="search-input">
        <uni-icons type="search" size="16" color="#999"></uni-icons>
        <input type="text" placeholder="仅供展示" />
      </view>
      <text class="department">{{employeeInfo.deptName}}</text>
    </view>
</template>

<script>
  import {mapState} from 'vuex'
  export default {
    name:"message-search",
    computed: {
      ...mapState('m_user',['employeeInfo'])
    },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss">
.search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx;
  border-radius: 10rpx;
  
  .search-input {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10rpx 20rpx;
    border-radius: 10rpx;
    
    input {
      flex: 1;
      margin-left: 10rpx;
      font-size: 28rpx;
    }
  }
  
  .department {
    margin-left: 20rpx;
    color: #666;
    font-size: 28rpx;
    font-weight: bold;
  }
}
</style>